<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 3.75rem;
            height: 3.75rem;
            background-color: red
        }
    </style>
</head>
<body>
    <div class="box">
        123456489
    </div>
    <script>
        console.log("index");
        let width = document.documentElement.clientWidth;
        console.log(width);
        let index = (width * 100) / 750;
        document.documentElement.style.fontSize = index + "px";
        console.log(index);

    </script>
</body>
</html>